<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2024/7/8
  Time: 9:58
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h2>主页</h2>
<input type="button" value="退出">
</body>
</html>
<script src="juqery/jquery-3.7.1.js">
</script>
<script>
  $(function () {
    $("input").click(function () {
      $.ajax({
        url:"ActionServlet",
        type:"post",
        data:"op=uotLogin",
        success:function (data) {
          if(data=="out"){
              location.href="login.jsp";
          }
        }
      })
    })
  })
</script>